package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 报废表
 * </p>
 *
 * @author xyk
 * @since 2021-04-22
 */
@Entity(tableName = "t_asset_scrap")
public class Scrap implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报废单号
     */
    @ColumnInfo(name = "scrap_id")
    @PrimaryKey(autoGenerate = true)
    private Long scrapId;

    /**
     * 报废部门
     */
    @ColumnInfo(name = "dept_id")
    private String deptId;

    /**
     * 报废人
     */
    @ColumnInfo(name = "user_id")
    private String userId;

    /**
     * 报废日期
     */
    @ColumnInfo(name = "createdate")
    private String createdate;

    /**
     * 报废状态（1：申请中，2：待报废，3：已报废）
     */
    @ColumnInfo(name = "status")
    private String status;

    /**
     * 备注
     */
    @ColumnInfo(name = "remark")
    private String remark;

    /**
     * 申请时间
     */
    @ColumnInfo(name = "redate")
    private String redate;

    /**
     * 图片
     */
    @ColumnInfo(name = "image")
    private String image;

    /**
     * 操作人
     */
    @ColumnInfo(name = "operator")
    private String operator;

    /**
     * 所属机构
     */
    @ColumnInfo(name = "company")
    private String company;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public Scrap() {
    }

    public Scrap(Long scrapId, String deptId, String userId,
                 String createdate, String status, String remark,
                 String redate, String image, String operator,
                 String company,String isFlag) {
        this.scrapId = scrapId;
        this.deptId = deptId;
        this.userId = userId;
        this.createdate = createdate;
        this.status = status;
        this.remark = remark;
        this.redate = redate;
        this.image = image;
        this.operator = operator;
        this.company = company;
        this.isFlag = isFlag;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }

    public Long getScrapId() {
        return scrapId;
    }

    public void setScrapId(Long scrapId) {
        this.scrapId = scrapId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRedate() {
        return redate;
    }

    public void setRedate(String redate) {
        this.redate = redate;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}